import dayjs from 'dayjs'

export function formatDate(date, formatStr = 'MM月DD日') {
  return dayjs(date).format(formatStr)
}

export function diffDate(endDate, startDate) {
  return dayjs(endDate).diff(startDate, 'day')
}
